<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
    <title>D生活运营二期管理平台</title>
    <%@include file="/views/common/include/taglib.jsp"%>
    <%@include file="/views/common/include/head.jsp"%>
    <link rel="stylesheet" href="${ctx}/css/page/header2.css" type="text/css">
    <link rel="stylesheet" href="${ctx}/css/page/reset.css" type="text/css">
    <link rel="stylesheet" href="${ctx}/css/page/person-left.css" type="text/css">
    <link rel="stylesheet" href="${ctx}/css/page/bdsj.css" type="text/css">
    <link rel="stylesheet" href="${ctx}/css/page/footer.css" type="text/css">
</head>

<body>
  <jsp:include page="/views/common/head_main.jsp" />
    <div class="bg" style="padding-top: 100px;">
        <div class="contentbox1 contentbox">
            <jsp:include page="/views/main/main_personal_left.jsp" />
            <div class="rightlist">
            <input type="hidden" id="item" value="${sessionScope.item_personal}"/>
                    <div class="top-box">
                        <input id="userId" type="hidden" value="${user.id }" />
                        <img src="${ctx}/images/bdsj/bd2.png">&nbsp;绑定手机
                    </div>
                    <div class="identify-box">
                    <c:if test="${type==2 }"><img src="${ctx }/images/bdsj/yanzheng.png" style=""/></c:if>
                    <c:if test="${type==1 }"><img src="${ctx }/images/bdsj/bangding.png" /></c:if>
                        <p style="margin-top:15px;color:#9F9D9E">编辑个人资料</p>
                            <input id="userPhone" type="hidden" value="${type}" />
                        <table class="b-table">
                            <tr>
                            <c:if test="${type==1}">
                                <td><span style="color:#57B4C6;">*</span>原手机</td>
                                <td><div class="in-box">
                                <input id="phoneBind" style="background-image:url(${ctx}/images/bdsj/bd3.png);background-repeat: no-repeat;background-position:10px 10px;" type="text" id="phoneCode" class="b-input" type="text" value="${user.phone}">
                                </div></td>
                            </c:if>
                            <c:if test="${type==2 }">
                                <td><span style="color:#57B4C6;">*</span>新手机</td>
                                <td><div class="in-box">
                                <input id="phoneBind" style="background-image:url(${ctx}/images/bdsj/bd3.png);background-repeat: no-repeat;background-position:10px 10px;" class="b-input" type="text" value="" onblur="" placeholder="请输入手机号">
                                </div></td>
                            </c:if>
                            </tr>
                            <tr>
                                <td><span style="color:#6BABA4;">*</span>验证码</td>
                                <td><div class="in-box">
                                    <input id="sixCode" type="hidden"/>
                                    <input class="b-input" style="background-image:url(${ctx}/images/bdsj/bd4.png);background-repeat: no-repeat;background-position:10px 10px;" type="text" id="phoneCode" onblur="checkCode();"placeholder="请输入6位验证码">
                                    
                                    </div>
                                </td>
                                <td><button id="sendcode" class="send-m">发送短信</button>
                                <input id="resendTime" type="hidden" value="${resendTime}"/>
                                <span id="warning" style="font:14px 微软雅黑  #828282;"></span>
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td><button class="next-step" onclick="nextStep();">下一步</button></td>
                                <td></td>
                                
                            </tr>
                        </table>
                    </div>
            </div>
        </div>
        
    </div>
<jsp:include page="/views/common/footer.jsp" />
<script src="${ctx}/js/controllers/bindphone/bindPhone.js" type="text/javascript"></script>
    <script src="${ctx}/js/lib/layer/layer.js"></script>
    <script src="${ctx}/js/lib/jquery.JPlaceholder.js"></script>
    <script type="text/javascript">
        var ctx = '${ctx}';
        setCtx(ctx);
        /* $("#sendcode").click(function(){
            $("#warning").html("20s后可重新发送");
        }) */
    </script>
</body>
</html>